<?php 
	$CI = & get_instance();
	$CI->load->model('Mnick');
	$lang  ='vn' ;
	if($lang == 'en')
		$lg = 2;
	else 
		$lg =1;
	$data = $CI->Mnick->get_data();	
	if(!empty($data))
	{
echo '<script type="text/javascript" src="http://cdn.dev.skype.com/uri/skype-uri.js"></script>';
		foreach($data as $row)
		{
			
        	?>
            <a href="ymsgr:sendim?<?php echo $row['nick_nicks']?>" mce_href="ymsgr:sendim?<?php echo $row['nick_nicks']?>" border="0"><img src="http://opi.yahoo.com/online?u=<?php echo $row['nick_nicks']?>&t=14" mce_src="http://opi.yahoo.com/online?u=hanh_huynh82&t=2"></a>

<div id="genSkypeCall_01" style ="width:100%; height:100px;margin-top:-49px; float:left;">
    <script type="text/javascript">
        Skype.ui({
            name: "chat",
            element: "genSkypeCall_01",
            participants: ["<?php echo $row['nick_skype'] ?>"],
            imageSize: 32,
            imageColor: "skype"
        });
    </script>
</div>
            <?php
		}
	}
?>